Integrand size = 31, antiderivative size = 34 \[ \int \frac {\sec ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=-\frac {i (i-\cot (c+d x))^3 \tan ^3(c+d x)}{3 a^2 d} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {3167, 862, 37} \[ \int \frac {\sec ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=-\frac {i \tan ^3(c+d x) (-\cot (c+d x)+i)^3}{3 a^2 d} \]
[In]
[Out]
Rule 37
Rule 862
Rule 3167
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {\left (1+x^2\right )^2}{x^4 (i a+a x)^2} \, dx,x,\cot (c+d x)\right )}{d} \\ & = -\frac {\text {Subst}\left (\int \frac {\left (-\frac {i}{a}+\frac {x}{a}\right )^2}{x^4} \, dx,x,\cot (c+d x)\right )}{d} \\ & = -\frac {i (i-\cot (c+d x))^3 \tan ^3(c+d x)}{3 a^2 d} \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.06 \[ \int \frac {\sec ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=-\frac {\tan (c+d x) \left (-3+3 i \tan (c+d x)+\tan ^2(c+d x)\right )}{3 a^2 d} \]
[In]
[Out]
Time = 0.65 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.59
method | result | size |
derivativedivides | \(-\frac {\left (\tan \left (d x +c \right )+i\right )^{3}}{3 d \,a^{2}}\) | \(20\) |
default | \(-\frac {\left (\tan \left (d x +c \right )+i\right )^{3}}{3 d \,a^{2}}\) | \(20\) |
risch | \(\frac {8 i}{3 a^{2} d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{3}}\) | \(23\) |
norman | \(\frac {\frac {4 i \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{a d}-\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d}+\frac {20 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{3 a d}-\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{a d}-\frac {4 i \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{a d}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3} a \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}\) | \(127\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 54 vs. \(2 (26) = 52\).
Time = 0.25 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.59 \[ \int \frac {\sec ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=\frac {8 i}{3 \, {\left (a^{2} d e^{\left (6 i \, d x + 6 i \, c\right )} + 3 \, a^{2} d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, a^{2} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d\right )}} \]
[In]
[Out]
\[ \int \frac {\sec ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=\frac {\int \frac {\sec ^{4}{\left (c + d x \right )}}{- \sin ^{2}{\left (c + d x \right )} + 2 i \sin {\left (c + d x \right )} \cos {\left (c + d x \right )} + \cos ^{2}{\left (c + d x \right )}}\, dx}{a^{2}} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.03 \[ \int \frac {\sec ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=-\frac {\tan \left (d x + c\right )^{3} + 3 i \, \tan \left (d x + c\right )^{2} - 3 \, \tan \left (d x + c\right )}{3 \, a^{2} d} \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.03 \[ \int \frac {\sec ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=-\frac {\tan \left (d x + c\right )^{3} + 3 i \, \tan \left (d x + c\right )^{2} - 3 \, \tan \left (d x + c\right )}{3 \, a^{2} d} \]
[In]
[Out]
Time = 23.71 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.44 \[ \int \frac {\sec ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=-\frac {\sin \left (c+d\,x\right )\,\left (-4\,{\cos \left (c+d\,x\right )}^2+3{}\mathrm {i}\,\sin \left (c+d\,x\right )\,\cos \left (c+d\,x\right )+1\right )}{3\,a^2\,d\,{\cos \left (c+d\,x\right )}^3} \]
[In]
[Out]